package com.huage_07.lesson_02;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class CopyTxtDemo {
    public static void main(String[] args)throws IOException {
        //读数据
        FileInputStream fis = new FileInputStream("class1\\src\\com\\huage_07\\lesson_02\\字节输出流.txt");
        FileOutputStream fos = new FileOutputStream("class1\\src\\com\\huage_07\\lesson_02\\文本副本.txt");

        int by;
        while ((by=fis.read())!=-1){
            fos.write(by);
        }

        fis.close();
        fos.close();

    }
}
